package com.spring.work1;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("student")
public class Student {
    @Resource(name = "phone")
    private Phone phone;

    public void setPhone(Phone phone) {
        this.phone = phone;
    }
    
}
